from django_filters import rest_framework as filters
from .models import Users


class UserProductFilter(filters.FilterSet):
    class Meta:
        model = Users
        fields = {
            'username': ['icontains'],
            "nickname": ['icontains'],
            'created_at': ['date__gte', 'date__lte'],
            'updated_at': ['date__gte', 'date__lte']
        }
